package zero.tech.games.mj.event;

import zero.tech.core.ZeroContext;
import zero.tech.core.event.EventListener;
import zero.tech.core.event.EventType;
import zero.tech.games.logic.common.Room;
import zero.tech.games.logic.data.LogicEventType;
import zero.tech.games.mj.service.api.IRoomTimerService;

/**
 * 房间线程管理
 * @author ludry
 *
 */
public class RoomTimer implements EventListener{

	@Override
	public EventType netEventType() {
		return LogicEventType.ROOM_TIMER;
	}

	@Override
	public void notifyEvent(Object... objs) {
		Room room=(Room) objs[0];
		IRoomTimerService mjService=ZeroContext.getInstance(IRoomTimerService.class);
		mjService.roomTimer(room);
	}

	@Override
	public boolean asynchronous() {
		return false;
	}

}
